from django.urls import re_path
from .views import index_views,goods_views


urlpatterns = [
    re_path(r'^$',index_views.index,name='myhome_index'),
    re_path(r'^login/$',index_views.login,name='myhome_login'),
    re_path(r'logout/$',index_views.logout,name='myhome_logout'),
    re_path(r'^register/$',index_views.register,name='myhome_register'),
    re_path(r'^shopinfo/$',goods_views.shopinfo,name='myhome_shopinfo'),
    re_path(r'^shoplist/(?P<cid>[0-9]+)/(?P<gid>[0-9]+)/$',goods_views.shoplist,name='myhome_shoplist'),
    # re_path(r'^shoplist/$',goods_views.shoplist,name='myhome_shoplist'),
    re_path(r'^shopcart/$',goods_views.shopcart,name='myhome_shopcart'),
    re_path(r'^pay/$',goods_views.pay,name='myhome_pay'),
    re_path(r'mobile/$',goods_views.mobile,name='myhome_mobile'),
]

